package com.appspot.moviesessions.provider;

public class FetchSessionDataTask implements Runnable {

	private SessionDataSource source;
	private SessionDataHandler handler;

	public FetchSessionDataTask(SessionDataSource source,
	        SessionDataHandler handler) {
		this.source = source;
		this.handler = handler;
	}

	@Override
	public void run() {
		handler.handle(source.fetch(MovieSession.SESSION_DATA_URL));
	}

}
